<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>Installation</title>
</head>
<body>
<h2>Installing JBoss</h2>
<ul>
  <li>Make sure that the package java-devel and libgcj are installed</li>
  <ul>
    <li>Make sure JAVA_HOME
points to the JDK and not JRE, ie usr/lib/jvm/java</li>
  </ul>
  <li>Unzip jboss-3.2.4RC1.zip</li>
  <li>Change to root user and
move to /opt and configure<span style="font-family: monospace;"><br>
    </span></li>
  <ul>
    <li><code><span style="font-family: monospace;">su</span></code></li>
    <li>enter root password</li>
    <li><span style="font-family: monospace;">mv jboss-3.2.4RC1 /opt</span></li>
    <li><span style="font-family: monospace;">cd /opt</span></li>
    <li><span style="font-family: monospace;">chown root:root
jboss-3.2.4RC1</span></li>
    <li><span style="font-family: monospace;">exit<br>
      </span></li>
    <li><span style="font-family: monospace;">cd /opt/jboss-3.2.4RC1</span></li>
    <li><code>chmod g+w -R *</code><br>
    </li>
    <li><span style="font-family: monospace;">cd /opt/jboss-3.2.4RC1/bin</span></li>
    <li><span style="font-family: monospace;">chmod +x run.sh</span></li>
    <li>Edit run.sh and add -Djava.awt.headless=true to JAVA_OPTS</li>
    <li>If you have trouble
starting jboss because port 8080 already in use:<span
 style="font-family: monospace;"><br>
      </span></li>
    <ul>
      <li><span style="font-family: monospace;">cd
/opt/jboss-3.2.4RC1/server/all/deploy/jbossweb-tomcat50.sar</span></li>
      <li>Edit <code>server.xml</code> and
change port 8080 to 8081</li>
    </ul>
    <li>Deprecated - Edit server.xml &lt;connector&gt; and set
proxyName="external.web.address" and scheme="https"</li>
    <li>Edit server.xml and find &lt;Engine&gt; tag and add attribute
jvmroot="node1"</li>
  </ul>
  <li>Install JBoss as a service</li>
  <ul>
    <li>Create soft link to jboss
directory using following steps:</li>
    <ul>
      <li><code><span style="font-family: monospace;">su</span></code></li>
      <li>Enter root password</li>
      <li><span style="font-family: monospace;">cd /opt</span></li>
      <li><span style="font-family: monospace;">ln -s jboss-3.2.4RC1
jboss</span></li>
      <li><span style="font-family: monospace;">cp
/opt/jboss/bin/jboss_init_suse.sh /etc/init.d/jboss.sh</span></li>
      <li><span style="font-family: monospace;">cd /etc/init.d</span></li>
      <li><span style="font-family: monospace;">chmod 755 jboss.sh</span></li>
      <li>Edit <code>jboss.sh</code> to make
sure the following values are correct:</li>
      <ul>
        <li><code>JAVAPTH=${JAVAPTH:-"/usr/lib/jvm/java/bin"}</code></li>
        <li><code>JBOSS_CONSOLE=${JBOSS_CONSOLE:-"/opt/jboss/server/all/log/jboss.log"}<br>
          </code></li>
        <li><code>JBOSSUS=${JBOSSUS:-"the
user who installed jboss"}</code></li>
      </ul>
      <li>Start yast and enable service jboss<span
 style="font-family: monospace;"><br>
        </span></li>
      <li><span style="font-family: monospace;">exit</span></li>
    </ul>
  </ul>
  <li>Install JBoss as a windows service</li>
  <ul>
    <li>Follow instructions at
http://wiki.jboss.org/wiki/Wiki.jsp?page=RunJBossAsAServiceOnWindows<br>
    </li>
  </ul>
  <ul>
    <ul>
      <span style="font-family: monospace;"></span><span
 style="font-family: monospace;"></span>
    </ul>
  </ul>
</ul>
<h2>Installing PostgreSQL</h2>
<ul>
  <li>Ensure that you have the following packages installed
from
Yast, including their dependencies:</li>
  <ul>
    <li>postgresql</li>
    <li>pgaccess</li>
  </ul>
  <li>Enable postgresql service in Yast/System/Runlevel
editor</li>
  <li><code>su</code></li>
  <li>Enter root password</li>
  <li><code>su postgres</code></li>
  <li><code>createdb velocityme</code></li>
  <li><code>psql velocityme</code></li>
  <li><code>CREATE USER velocityme WITH PASSWORD 'velo';</code></li>
  <li><code>\q</code></li>
  <li><code>cd ~/data</code></li>
  <li>Edit <code>postgresql.conf</code> and uncomment all the lines in
the - Connection Settings - section, to enable TCP/IP connections</li>
  <li>Edit <code>pg_hba.conf</code> and uncomment the following line
to enable access from pgaccess:</li>
  <ul>
    <li><code>local&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;
all&nbsp;&nbsp;&nbsp;&nbsp; ident&nbsp;&nbsp; sameuser</code></li>
  </ul>
  <li>then add the following line to enable access of velocityme within
JBoss:</li>
  <ul>
    <li><code>host&nbsp;&nbsp;&nbsp;
velocityme&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
velocityme&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ::1&nbsp;&nbsp;&nbsp;&nbsp;
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff trust</code></li>
  </ul>
  <li><code>exit</code> (you are now root again)</li>
  <li><code>cd /etc/init.d</code></li>
  <li><code>./postgresql restart</code> (restarts database and reads
the configuration changes)</li>
</ul>
<h3>Installing jdbc driver</h3>
<ul>
  <li>Go to jdbc.postgresql.org and download pg74.216.jdbc3.jar into
/opt/jboss/server/all/lib</li>
</ul>
<h2>Installing Apache</h2>
<ul>
  <li>Install mod_jk</li>
  <li>Create /etc/apache2/conf.d/jk.conf</li>
  <li>Copy workers.properties</li>
  <li>Restart apache2</li>
</ul>
<h2>Configuring Apache</h2>
<ul>
  <li>Ensure that you have the following packages installed from Yast:</li>
  <ul>
    <li>apache2</li>
    <li>apache2-devel</li>
  </ul>
  <li><code>su</code></li>
  <li>Enter root password</li>
  <li><code>cd /etc/apache2</code></li>
  <li>Edit jk.conf and add the following lines:</li>
  <ul>
    <li><code>&lt;IfModule mod_jk.c&gt;<br>
        <br>
    JkWorkersFile /etc/apache2/workers.properties<br>
    JkLogFile /var/log/apache2/mod_jk.log<br>
        <br>
    # Log level to be used by mod_jk<br>
    JkLogLevel error<br>
<br>
    # The following line mounts all JSP files and the /servlet/ uri to tomcat<br>
    JkMount /velocityme node1<br>
    JkMount /velocityme/* node1<br>
<br>
    # The following line prohibits users from directly accessing WEB-INF<br>
    &lt;Location "/velocityme/WEB-INF/"&gt;<br>
        AllowOverride None<br>
        deny from all<br>
    &lt;/Location&gt;<br>
<br>
&lt;/IfModule&gt;</code></li>
  </ul>
  <li>Edit worker.properties and add the following lines:</li>
  <ul>
    <li><code># Define list of workers that will be used<br>
# for mapping requests<br>
worker.list=node1<br>
      <br>
# Define Node1<br>
# modify the host as your host IP or DNS name.<br>
worker.node1.port=8009<br>
worker.node1.host=localhost<br>
worker.node1.type=ajp13<br>
worker.node1.lbfactor=1<br>
worker.node1.cachesize=10</code></li>
  </ul>
  <li><code>cd /etc/init.d</code></li>
  <li><code>./apache2 restart</code></li>
  <li><code>exit</code><br>
  </li>
</ul>
<br>
<ul>
</ul>
</body>
</html>
